<?php
/**
 * Created by PhpStorm.
 * User: River
 * Email: river0428@gmail.com
 * Date: 2018/6/11
 * Time: 上午11:03
 */

namespace Modules\Wap\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Route;

class WapServiceProvider extends ServiceProvider
{
    //protected $defer = true;

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        $this->loadRoutes();
        $this->loadViewsFrom(module_path('Wap/views'), 'wap');
    }

    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {

    }

    public function loadRoutes()
    {
        // auth routes
        Route::namespace('Modules\Wap\Controllers')
            ->group(module_path('Wap/routes/web.php'));
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return [];
    }
}